package chapter15;

/**
 * Created by lzy
 * Date: 2018/5/10
 * @author lzy
 */
public class Foo2<T> {
    private T x;
    public <F extends FactoryI<T>> Foo2(F factory){
        x = factory.creat();
    }

    public T getT(){
        return x;
    }
}
